﻿#ifndef MYCOMBOXDELEGATE_H
#define MYCOMBOXDELEGATE_H
#pragma once
#include <QObject>
#include <QStyledItemDelegate>

//此类用于重载登陆的下拉列表的委托

class MyComboxDelegate : public QStyledItemDelegate
{
    Q_OBJECT
public:
    explicit MyComboxDelegate(QObject *parent = nullptr);
    ~MyComboxDelegate();
    void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
    QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
signals:

};

#endif // MYCOMBOXDELEGATE_H
